//package com.naiterui.ehp.bs.recommend.dao.impl;
//
//import java.util.List;
//
//import org.springframework.stereotype.Repository;
//
//import com.naiterui.common.repository.hibernate.DefaultBaseDaoImpl;
//import com.naiterui.ehp.bs.recommend.bean.RecommPrescription;
//import com.naiterui.ehp.bs.recommend.dao.IRecommPrescriptionDao;
//
///**
// * @author guoyongxiang
// * @date 2019-06-25 11:00
// * @since 1.0.0
// */
//@Repository
//public class RecommPrescriptionDaoImpl extends DefaultBaseDaoImpl<RecommPrescription, Long> implements IRecommPrescriptionDao {
//
//
//    @Override
//    public RecommPrescription findByRecomIdAndType(Long recomId, Integer type) {
//        List<RecommPrescription> prescriptionList = super.find("from RecommPrescription where recommendId=? and type=? order by id desc", recomId,
//                type);
//        if (prescriptionList != null && !prescriptionList.isEmpty()) {
//            return prescriptionList.get(0);
//        }
//        return null;
//    }
//}
